import { BASE_API } from '@/config/index.js'
// const http = uni.$u.http

const base = `${BASE_API}/aiot`

// 身份校验
export const setAuth = `${base}/conf/auth/secret-auth/`

// 身份校验-新版-脱离授权字段 = https://api.smartahc.com
export const setAuthByEid =  `https://api.smartahc.com/aiot/user/user/auth/`

// 获取弄厂、栋舍
export const getFarm = `${base}/user/user/farm/scene/`

// 更新空栏、栏位是否有猪
export const setFarmEmpty = `${base}/user/user/scene/`

const aiot = `https://api.smartahc.com/aiot/apps-service/channel`

// 查看料槽任务统计
export const getRecordParams = `${aiot}/statistic/column/`

// 查看已拍/未拍栋舍/未拍场
export const getRecordFarmList = `${aiot}/api/farm/`

// 查看料量列表
export const getRecordFeedList = `${aiot}/api/scene/feed/search_has_feed=`

// 查看AI巡检结果
export const getRecordFeedListAsAi = `https://api.smartahc.com/aiot/apps/channel/export/?institute=`
